﻿<Page x:Class="PTCScheduler.FileMenu_Pages.Add_StudentPage"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      mc:Ignorable="d" 
      d:DesignHeight="480" d:DesignWidth="825"
	Title="Add New Student">
    <Grid>
        <Grid Style="{StaticResource PageStyle}">
            <Label Content="Student First Name:" Height="28" HorizontalAlignment="Left" Margin="16,63,0,0" Name="lblStudentFName" VerticalAlignment="Top" Style="{StaticResource LabelStyle}" />
            <TextBox Height="23" HorizontalAlignment="Left" Margin="165,65,0,0" Name="txtStudentFName" VerticalAlignment="Top" Width="120" MaxLength="20" />

            <Label Content="Student Last Name:" Height="28" HorizontalAlignment="Left" Margin="18,106,0,0" Name="lblStudentLName" VerticalAlignment="Top" Style="{StaticResource LabelStyle}" />
            <TextBox Height="23" HorizontalAlignment="Left" Margin="165,108,0,0" Name="txtStudentLName" VerticalAlignment="Top" Width="120" MaxLength="20" />

            <Label Content="Student ID:" Height="28" HorizontalAlignment="Left" Margin="18,149,0,0" Name="lblStudentID" Style="{StaticResource LabelStyle}" VerticalAlignment="Top" />
            <TextBox Height="23" HorizontalAlignment="Left" Margin="165,151,0,0" Name="txtStudentID" VerticalAlignment="Top" Width="120" MaxLength="9" />

            <Label Content="Parent Email:" Height="28" HorizontalAlignment="Left" Margin="18,192,0,0" Name="lblParentEmail" Style="{StaticResource LabelStyle}" VerticalAlignment="Top" />
            <TextBox Height="23" HorizontalAlignment="Left" Margin="165,194,0,0" Name="txtParentEmail" VerticalAlignment="Top" Width="120" MaxLength="40" />

            <Label Content="Parent Phone:" Height="28" HorizontalAlignment="Left" Margin="18,235,0,0" Name="lblParentPhone" Style="{StaticResource LabelStyle}" VerticalAlignment="Top" />
            <TextBox Height="23" HorizontalAlignment="Left" Margin="165,237,0,0" Name="txtParentPhone" VerticalAlignment="Top" Width="120" MaxLength="15" />

            <Button Content="Submit" Height="40" HorizontalAlignment="Left" Margin="195,276,0,0" Name="btnSubmit" VerticalAlignment="Top" Width="90" FontSize="14" Style="{StaticResource ButtonStyle}" FontWeight="Bold" FontFamily="Arial" Click="btnSubmit_Click" />
            <TextBlock Height="49" HorizontalAlignment="Left" Name="textBlock1" Text="Please enter student information below and click submit button to add new student." VerticalAlignment="Top" FontFamily="Arial" FontWeight="Bold" Width="306" TextWrapping="Wrap" Background="CornflowerBlue" Foreground="White" FontStretch="Normal" TextTrimming="None" Style="{StaticResource InstructionsStyle}" />
        </Grid>
        <Grid Margin="306,0,0,0" Background="White">
            <Label Content="Updated Record: " Height="28" HorizontalAlignment="Left" Margin="6,6,0,0" Name="lblUpdatedRecord" VerticalAlignment="Top" Style="{StaticResource LabelStyle}" />
            <Label Content="Student has been added successfully." Height="28" HorizontalAlignment="Left" Margin="131,6,0,0" Name="lblStudentSuccess" VerticalAlignment="Top" Style="{StaticResource LabelStyle}" Foreground="DarkGreen" Visibility="Hidden" />
            <DataGrid  Name="dataGridStudent" Style="{StaticResource DataGridViewStyle}" Margin="12,39,26,29" />
            <Label Content="Student first name, last name, and student id must be provided." Height="28" HorizontalAlignment="Left" Margin="12,72,0,0" Name="lblInformationCheck" VerticalAlignment="Top" Foreground="Red" Style="{StaticResource LabelStyle}" Visibility="Hidden" />
            <Label Content="Student ID has already been assigned." Height="28" HorizontalAlignment="Left" Margin="12,72,0,0" Name="lblStudentExists" VerticalAlignment="Top" Foreground="Red" Style="{StaticResource LabelStyle}" Visibility="Hidden" />
            <Label Content="Please enter a valid student id or name." Height="28" HorizontalAlignment="Left" Margin="12,72,0,0" Name="lblValid" VerticalAlignment="Top" Style="{StaticResource LabelStyle}" Foreground="Red" Visibility="Hidden" />
            <Label Content="Please enter a valid email. example@example.com" Foreground="Red" Height="28" HorizontalAlignment="Left" Margin="12,72,0,0" Name="lblValidEmail" Style="{StaticResource LabelStyle}" VerticalAlignment="Top" Visibility="Hidden" />
        </Grid>
    </Grid>
</Page>
